<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/26
 * Time: 22:19
 */

namespace app\api\model;

class ProductImage extends BaseModel
{
    //关联image表
    public function imgs()
    {
        return $this -> hasOne('Image', 'id', 'img_id');
    }
}